<?php $this->load->view("common/page_header");?>
<script type="text/javascript" src="/js/jquery.raty.js"></script>
<div id="body_main">	
	<div class="login_header">
		<img class="logo" src="/img/logo2.png" />
		<div class="title">评价用户</div>
		<div class="action"><a href="###">返回首页</a></div>
		<div class="clear"></div>
	</div>
	<div class="login_body" style="background:none">
		<div class="arrow_up" style="left:155px">
			<em>◆</em>
			<span>◆</span>
		</div>
		<form action="" method="post" class="margin_top15 margin_left15">
			<div class="form_row">
				<span class="orange bold input_label">评价对象：</span><a class="left" href="<?php echo site_url("user/show/?user_id=" . $user['id'])?>"><?php echo $user['nickname'];?></a>
				<?php if (!empty($story)) {?><span class="orange bold left" style="margin-left:100px">事项：</span><a href="/story/show/<?php echo $story['id']?>" class="left"><?php echo $story['title']?></a><?php }?>
				<div class="clear"></div>
			</div>
			<div class="form_row">
				<label class="input_label bold orange"><span class="red">*</span> 评价星级：</label>
				<div id="star_evaluate" style="float:left"></div>
				<div class="clear"></div>
			</div>
			<div class="form_row">
				<label class="input_label bold orange">评价内容：</label>
				<textarea rows="5" name="content" cols="50"></textarea>
				<div class="clear"></div>
			</div>
			<div class="form_action">
				<input type="hidden" name="target_type" value="<?php echo $target_type?>"/>
				<input type="hidden" name="target_id" value="<?php echo $target_id?>"/>
				<input type="hidden" name="related_id" value="<?php echo empty($story['id']) ? 0 : $story['id']?>"/>
				<input type="submit" class="input_button" value="提交评价"/>
				<span class="grey">您的评价将会左右其他用户的选择</span>
			</div>
		</form>
		<div class="clear"></div>
	</div>
</div>
<?php $this->load->view("common/footer");?>		
<?php $this->load->view("common/page_footer");?>
<script type="text/javascript">
$(document).ready(function(){
	$('#star_evaluate').raty();
});
</script>
